package cn.wolfcode.luowowo.article.domain;

import cn.wolfcode.luowowo.member.domain.UserInfo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@ToString
public class Problem implements Serializable{
    private Long id;

    private String title;

    private Destination dest;

    private StrategyTag tag;

    private UserInfo user;

    private int viewnum;

    private int replynum;

    private int thumbsupnum;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    private String coverurl;

    private ProblemContent travelContent;

}